package com.world.business.weapon.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.world.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 法宝
 *
 * @author 邓驴
 * @since 2023-05-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Weapon对象", description = "法宝")
public class Weapon extends BaseEntity {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("描述")
    private String description;

    /**
     * 装备级别，参考字典表中武器级别
     */
    @ApiModelProperty("级别")
    private String level;

    @ApiModelProperty("发明者")
    private String refineId;

    @ApiModelProperty("发明时间")
    private LocalDateTime refineTime;

    @ApiModelProperty("来源")
    @TableField(value = "`from`")
    private String from;

    @ApiModelProperty("是否具有唯一性 0否 1是")
    private Integer uniqueness;

    @ApiModelProperty("是否还存世 0否 1是")
    private Integer survive;

}
